package com.zijie.rbac.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@TableName("t_rbac_role_perm")
@Getter
@Setter
@ToString
public class RolePermMapping {
    @TableId(type = IdType.AUTO)
    private Integer id;//主键
    private Integer roleId;//角色编号
    private Integer permId;//权限编号

    @ToString.Exclude
    @TableField(exist = false)
    private Perm perm;
}
